const requireApi = require.context('.', true, /.js$/)

const models = {}

requireApi.keys().forEach((key, index) => {
	if (key === 'index.js') return
	Object.assign(models, requireApi(key))
})

export default models